package com.deep.auth.feign;

import com.deep.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 第三方服务远程调用
 *
 * @author Deep
 * @date 2022/2/4
 */
@FeignClient(value = "mall-thirdParty")
public interface ThirdPartyFeignService {
    /**
     * 验证码服务
     *
     * @param phone 手机号
     * @param code  验证码
     */
    @GetMapping("thirdparty/sms/sendcode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
